import request from '@/utils/request'

export function addSpec(data) {
  return request({
    url: '/juanbusiness/product-spec/add',
    method: 'post',
    data
  })
}

export function findSpec(page, size) {
  return request({
    url: '/juanbusiness/product-spec/findPage',
    method: 'get',
    params: { page: page, size: size }
  })
}

export function editSpec(data) {
  return request({
    url: '/juanbusiness/product-spec/edit',
    method: 'put',
    data
  })
}

export function detailSpec(id) {
  return request({
    url: '/juanbusiness/product-spec/get',
    method: 'get',
    params: {id: id}
  })
}

export function delSpec(id) {
  return request({
    url: '/juanbusiness/product-spec/del',
    method: 'delete',
    params: {id: id}
  })
}
